//
//  OrderRobCell.swift
//  Order
//
//  Created by Lazyloading on 2020/7/21.
//  Copyright © 2020 lazyloading. All rights reserved.
//

import UIKit

class OrderRobCell: UITableViewCell {

    var orderActionBlock : ((UIButton) -> ())?;
    
    @IBOutlet weak var bottomLine: UIView!
    @IBOutlet weak var orderBtn: UIButton!
    @IBOutlet weak var moneyLabel: UILabel!
    @IBOutlet weak var typeLabel: UILabel!
    
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        self.selectionStyle = .none;
        self.orderBtn.backgroundColor = ZMColor.Orange.orange1;
        self.orderBtn.setTitleColor(.white, for: .normal);
        self.orderBtn.layer.cornerRadius = 13;
        self.orderBtn.layer.masksToBounds = true;
        self.bottomLine.backgroundColor = ZMColor.Gray.gray1;
    }
    
    
    @IBAction func orderAction(_ sender: UIButton) {
        if  self.orderActionBlock  != nil {
            self.orderActionBlock!(sender);
        }
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
